Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Bump git-utils: 5.7.1 => ^5.7.3 #772

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

confused-Techie
Copy link
Member

@confused-Techie confused-Techie commented Oct 17, 2023

This PR bumps the version of git-utils used within the core editor.
I've gone ahead and added the carrot to allow it to auto update if needed (But git-utils is our own library, so I can't really see that happening in an unexpected way).

The reason for this PR is rather simple, but one I've had my eye on for quite some time.

In our distributed binaries of Pulsar there are two different versions of git-utils included in the compressed asar file:

  • git-utils@5.7.1: This is what we have had the version pinned to within the core editor
  • git-utils@5.7.3: This is what was allowed to be installed via scandal as that library uses git-utils@^5.6.0

While some duplication isn't a big deal, the git-utils library is 85.00 MB for each copy. Meaning that this simple, minor difference in the installed versions of git-utils causes an increase of our binaries by ~170MB. Which when we consider v1.110.0 when installed on Windows is 1.07GB means that this tiny change can get us just under a 1GB install. (We should end up installing at about ~985MB after this change)

And for anyone still nervous about any functional changes to the editor, here's the full diff between these versions. Which literally seems to be some repo cleanup, GitHub Actions, and sorting the dependencies. In other words should be zero functional difference.

As for the last justification, it's simply bumping versions, which is always good when they don't have breaking changes, like here.

@DeeDeeG
Copy link
Member

DeeDeeG commented Oct 17, 2023

While some duplication isn't a big deal, the git-utils library is 85.00 MB for each copy. Meaning that this simple, minor difference in the installed versions of git-utils causes an increase of our binaries by ~170MB. Which when we consider v1.110.0 when installed on Windows is 1.07GB means that this tiny change can get us just under a 1GB install. (We should end up installing at about ~985MB after this change)

🤯

Wow.

Copy link
Member

@DeeDeeG DeeDeeG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description of how this reduces the size of the final app bundle sounds absolutely reasonable (makes sense to me), and this seems like a nice easy "win"/improvement.

Bonus points: The diff in git-utils does indeed look completely non-meaningful to our use. It's CI config files for that repo to use only that were changed, along with the package's README.md.

So this doesn't change anything other than giving us fewer dependencies that we can presumably load more efficiently and have a slightly smaller app. 👍 Very cool!

(The nan bump would have been actively good, but it's neutral since they already used caret semver and we no-doubt have newer nan than their bumped minimum anyway. But just as much as this doesn't help us in any way, it also doesn't hurt or do effectively anything to us, really.)

@confused-Techie
Copy link
Member Author

Thanks again for the approval @DeeDeeG! And glad we can to the same conclusion about the changes, and with that I'll go ahead and merge this one!

@confused-Techie confused-Techie merged commit 138e2ab into master Oct 17, 2023
99 checks passed
@confused-Techie confused-Techie deleted the bump-git-utils branch October 17, 2023 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants